package vip.xiaonuo.client.modular.examPaper.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import vip.xiaonuo.client.modular.examPaper.entity.ClientExamPaper;
import vip.xiaonuo.client.modular.examPaper.param.ClientExamPaperPageParam;
import vip.xiaonuo.client.modular.examPaper.service.ClientExamPaperService;
import vip.xiaonuo.common.pojo.CommonResult;

@Tag(name = "试卷控制器")
@RestController
public class ClientExamPaperController {
    @Resource
    private ClientExamPaperService clientExamPaperService;

    /**
     * 获取试卷表分页
     *
     * @author 小鹿
     */
    @Operation(summary = "获取试卷表分页")
    @GetMapping("/client/examPaper/page")
    public CommonResult<Page<ClientExamPaper>> page(ClientExamPaperPageParam examPaperPageParam) {
        return CommonResult.data(clientExamPaperService.page(examPaperPageParam));
    }
}
